﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.Dto.Purchase
{
    public class ReceivingGoodsDTO
    {
        /// <summary>
        /// 正常订单列表
        /// </summary>
        public List<OrderList> NormalOrderList { get; set; }
        /// <summary>
        /// 补货订单列表
        /// </summary>
        public List<OrderList> AddOrderList { get; set; }
        /// <summary>
        /// 退货订单列表
        /// </summary>
        public List<OrderList> BackOrderList { get; set; }
    }
    public class OrderList
    {
        /// <summary>
        /// 采购订单号
        /// </summary>
        public string OrderId { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 供应商编号
        /// </summary>
        public string SupplierCode { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal TotalMoney { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        [JsonConverter(typeof(DateFormat))]
        public DateTime DeliveryDate { get; set; }
        public List<OrderDetail> OrderDetail { get; set; }
    }
    public class OrderDetail
    {
        /// <summary>
        /// 客户编码
        /// </summary>
        public string CustomerCode { get; set; }
        /// <summary>
        /// 品名
        /// </summary>
        public string SkuName { get; set; }
        /// <summary>
        /// 采购数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        ///金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { get; set; }
    }
}
